package com.hzm.controller;

import com.hzm.service.MemberService;
import com.hzm.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: qy137-java
 * @description:
 * @author: 皇子明
 * @create: 2021-10-24 20:20
 **/
@RestController
@RequestMapping("/order/member")
@Api(tags = "用户详情")
public class MemberController {
    @Autowired
    private MemberService memberService;
    @PostMapping("/queryAllMemberById/{memberId}")
    @ApiOperation("用过memberId查询所有的用户信息")
    public Result queryAllMemberById(@PathVariable("memberId") @RequestBody String memberId){
        Result result = memberService.queryAllMemberById(memberId);
        return result;

    }

}












